﻿using SkiaAndModel.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkiaAndModel.NodeAbstract
{
    /// <summary>
    /// 路径节点的基类，路径节点下一个可以连接路径节点或者元器件节点
    /// 孩子节点中，连接的全是路径节点
    /// </summary>
    public abstract class PathNodeBase : INode
    {
        public Guid Id { get; set; } = Guid.NewGuid();
        public virtual string Name { get; set; } = "Path Node";
        public NodeType NodeType { get; set; } = NodeType.PathNode;

        public INode From { get; set; }
        public INode To { get; set; }

        public int GetHeight()
        {
            return 0;
        }
    }
}
